package p.ithorns.framework.core.constants;

/**
 * FileConsts
 *
 * 文件类型常量
 *
 * @author liuhaitao
 * @version 1.0
 * @date 2022/3/21 11:12
 */
public interface FileConsts {

    String PATH_SYMBOL = "/";

    /**
     * 文件单位大小：M
     */
    long FILE_SIZE_M = 1024 * 1024L;

    /**
     * 最大上传文件限制 单位：M
     */
    int MAX_FILE_UPLOAD_SIZE = 10;

    String FILE_TYPE_ZIP = "zip";

    /**
     * excel类型：xls/xlsx
     */
    String EXCEL_TYPE = "excel";
    String EXCEL_TYPE_XLS = "xls";
    String EXCEL_TYPE_SUFFIX_XLS = ".xls";
    String EXCEL_TYPE_XLSX = "xlsx";
    String EXCEL_TYPE_SUFFIX_XLSX = ".xlsx";

    /**
     * image类型：png/jpeg/jpg/bmp
     */
    String IMAGE_TYPE = "image";
    String IMAGE_TYPE_PNG = "png";
    String IMAGE_TYPE_SUFFIX_PNG = ".png";
    String IMAGE_TYPE_JPEG = "jpeg";
    String IMAGE_TYPE_SUFFIX_JPEG = ".jpeg";
    String IMAGE_TYPE_JPG = "jpg";
    String IMAGE_TYPE_SUFFIX_JPG = ".jpg";
    String IMAGE_TYPE_BMP = "bmp";
    String IMAGE_TYPE_SUFFIX_BMP = ".bmp";
    String IMAGE_TYPE_SVG = "svg";
    String IMAGE_TYPE_SUFFIX_SVG = ".svg";

}